<?php
$choice_code_name = \Illuminate\Support\Arr::get($widget_params, 'name', 'store');
$choice_code_key = \Illuminate\Support\Arr::get($widget_params, 'code', 'store');
$choice_noIds = \Illuminate\Support\Arr::get($widget_params, 'noIds', false);
$choice_value = \Illuminate\Support\Arr::get($widget_params, 'value', 0);
$_kvs = \App\Facade\Code::get($choice_code_key);
?>
@if(!empty($_kvs))
    @foreach($_kvs as $key=>$value)
        @if($choice_noIds && in_array($key,$choice_noIds))
            @continue
        @endif
        <label class="lyear-checkbox checkbox-inline checkbox-primary">
            <input type="checkbox" name="{{$choice_code_name}}[{{$key}}]" value="{{$key}}" @if(($choice_value&\App\Utils\Helper::pow($key))>0) checked @endif><span>{{$value}}</span>
        </label>
    @endforeach
@endif
